﻿@model RaisingStudio.Razor.ViewModels.RazorEditorViewModel
@{
    var htmlAttributes = new Dictionary<string, object>();
    if (Model.UseTinyMce)
    {
        Script.Require("RazorTinyMce");
        htmlAttributes = new Dictionary<string, object> 
        {
		    {"class", "razortinymce"},
		    {"data-mediapicker-uploadpath", Model.AddMediaPath},
		    {"data-mediapicker-title",T("Insert/Update Media")}
        };
    }     
}
<fieldset>
    <label>@T("Template")</label>
    @Html.TextArea("Template", (string)Model.Template, 25, 80, htmlAttributes)
</fieldset>
